package com.home.qh.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.BookingDao;
import com.home.qh.model.AdditionalClause;
import com.home.qh.model.Booking;
import com.home.qh.model.TransFreight;
import com.home.qh.model.TransGoodsDesc;
import com.home.qh.model.TransParty;
import com.home.qh.service.BookingManager;

@Service("bookingManager")
public class BookingManagerImpl extends GenericManagerImpl<Booking, Long> implements	BookingManager {
	BookingDao bookingDao;

    @Autowired
    public BookingManagerImpl(BookingDao bookingDao) {
        super(bookingDao);
        this.bookingDao = bookingDao;
    }

	public List<Booking> getBookingByBooking(Booking booking, String sort,
			boolean desc, int startResult, int maxResults) {
		return bookingDao.getBookingByBooking(booking, sort, desc, startResult, maxResults);
	}

	public List<TransParty> getTransPartyByBooking(long parseLong) {
		// TODO Auto-generated method stub
		return bookingDao.getTransPartyByBooking(parseLong);
	}

	public List<AdditionalClause> getAdditionalClauseByBooking(long bookingId) {
		// TODO Auto-generated method stub
		return bookingDao.getAdditionalClauseByBooking(bookingId);
	}

	public List<TransFreight> getTransFreightByBooking(long bookingId) {
		// TODO Auto-generated method stub
		return bookingDao.getTransFreightByBooking(bookingId);
	}

	public List<TransGoodsDesc> getTransGoodsDescByBooking(long bookingId) {
		// TODO Auto-generated method stub
		return bookingDao.getTransGoodsDescByBooking(bookingId);
	}

	public int getOrderNumber() {
		// TODO Auto-generated method stub
		return bookingDao.getOrderNumber();
	}
}
